<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>
<html>
<head>
<title>人事信息查询</title>
</head>
<body>
<h2 class="title">请输入查询条件</h2>
<s:form action="user/SearchUser">
	<table class="form">
		<tr>
			<th width="10%">姓名</th>
			<td width="20%"><s:textfield name="user.name"></s:textfield></td>
			<th width="10%">部门</th>
			<td width="20%"><m:select enumType="dept.type" headKey="--请选择--" headValue="0" name="user.dept" /></td>
			<th width="10%">岗位</th>
			<td width="20%"><s:select list="roles" headerKey=""
				headerValue="--" listKey="id" listValue="name" name="user.role.id"></s:select>
			</td>
		</tr>
	</table>
	<div class="btnGroup"><s:submit value="提交"></s:submit></div>
</s:form>

<h2 class="title">用户信息列表</h2>
<table class="list">
	<tr>
		<!-- 
			<th width="10%">用户系统编号</th>
			<th width="10%">登录名</th> -->
		<th width="20%">姓名</th>
		<th width="10%">性别</th>
		<th width="15%">电话</th>
		<th width="20%">部门</th>
		<th width="15%">岗位</th>
		<th width="20%">电子邮件</th>
	</tr>
	<s:if test="users.items.size>0">
		<s:iterator value="users.items">
			<tr>
				<!--
				<td><s:property value="id" /></td>
				<td><s:property value="nickName" /></td>-->
				<td><s:property value="name" /></td>
				<td><s:if test="man">男</s:if><s:else>女</s:else></td>
				<td><s:property value="telel" /></td>
				<td><m:property value="dept" /></td>
				<td><s:property value="role.name" /></td>
				<td><s:property value="email" /></td>
			</tr>
		</s:iterator>
	</s:if>
	<s:else>
		<tr>
			<td colspan="8">对不起，没有符合您要求的记录</td>
		</tr>
	</s:else>
</table>
<m:page value="${users}" />
</body>
</html>